package com.realestate.services;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.realestate.dao.BuildingDao;
import com.realestate.model.BrtbBuilding;

@Service
public class BuildingServiceImpl implements BuildingService{
	
	@SuppressWarnings("unused")
	private static final Logger LOGGER = Logger.getLogger(BuildingServiceImpl.class);
	
	@Autowired
    private BuildingDao buildingDao;
 
    public List<BrtbBuilding> getAllBuilding() {
        return buildingDao.getAllBuilding();
    }

	@Override
	public BrtbBuilding getBuildingByCode(String code) {
		return buildingDao.getBuildingByCode(code);
	}
}
